from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

op = webdriver.ChromeOptions()
op.add_experimental_option('excludeSwitches', ['enable-automation'])
op.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=op)

driver.get("https://www.mosoteach.cn/web/index.php?c=passport&m=index")



driver.find_element(By.XPATH,"//*[@id='account-name']").send_keys("15882681952")
driver.find_element(By.XPATH,"//*[@id='user-pwd']").send_keys("hushuang20")
driver.find_element(By.XPATH,"//button").click()
print(driver.title)

sleep(5)
assert " " in driver.title

driver.quit()

